{% extends "issues/base.html" %}
{% block content %}
<div id="questions">
{% if latest_question_list %}
<table>
	<tr>
		<th>Question</th>
		<th>Submitter</th>
		<th>Date</th>
		<th>Replies</th>
		<th>Status</th>
	</tr>
	{% for question in latest_question_list %}
	<tr>
		<td><a href="/project/{{ project.id }}/question/{{ question.id }}/">{{ question.question|striptags|truncatewords:10 }}</a></td>
		<td>{% firstof question.submitter.get_full_name question.submitter.username %}</td>
		<td>{{ question.entry_date|date:"j F Y H:i" }}</td>
		<td>{{ question.num_replies }} repl{{ question.num_replies|pluralize:"y,ies" }}</td>
		<td>{{ question.status }}</td>
	</tr>
	{% endfor %}
	</table>

{% else %}
	<p>No questions are available.</p>
{% endif %}
<form action="/project/{{ project.id }}/ask/" method="POST">
<p>
{% if error_message %}
{{ error_message }}<br />
{% endif %}
New question:<br />
<textarea name="question" rows="8" cols="80"></textarea><br />
<input type="submit" value="Submit" />
</p>
</form>
</div>
{% endblock %}
